package com.xuelang.pipeline.infrastructure.pipeline.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuelang.pipeline.infrastructure.pipeline.dataobject.PipelineGroupDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 流水线分组数据Mapper
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Repository
public interface PipelineGroupMapper extends BaseMapper<PipelineGroupDO> {

    /**
     * 批量插入PipelineGroupDO对象
     *
     * @param pipelineGroupList 待插入的PipelineGroupDO对象列表
     * @return 插入成功的记录数
     */
    int insertBatch(@Param("list") List<PipelineGroupDO> pipelineGroupList);

}
